import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 2,
      title: '入库',
    },
    name: 'StockIn',
    path: '/stockIn',
    children: [
      {
        name: 'StockInIndex',
        path: '/stockIn/index',
        component: () => import('#/views/stockIn/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '入库',
        },
      },
      {
        name: 'StockInRecord',
        path: '/stockIn/record',
        component: () => import('#/views/stockIn/record/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '入库记录',
        },
      },
      {
        name: 'StockInPrint',
        path: '/stockIn/print',
        component: () => import('#/views/stockIn/print/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '手动入库',
        },
      },
    ],
  },
];

export default routes;
